package com.woniu.service.impl;

import com.woniu.pojo.Services;
import com.woniu.mapper.ServicesMapper;
import com.woniu.service.IServicesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.vo.QueryServiceInfortmationVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务管理表 服务实现类
 * </p>
 *
 * @author xiaotang
 * @since 2022-10-18
 */
@Service
public class ServicesServiceImpl extends ServiceImpl<ServicesMapper, Services> implements IServicesService {

    @Autowired
    private ServicesMapper servicesMapper;

    /**
     * 根据服务id查询服务信息
     * @param servicesId
     * @return
     */
    @Override
    public QueryServiceInfortmationVo queryById(Long servicesId) {
        QueryServiceInfortmationVo queryServiceInfortmationVo = servicesMapper.searchById(servicesId);

        return queryServiceInfortmationVo;
    }
}
